package com.lau.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @author mohan lau
 * @version 1.0
 * @description: TODO
 * @classname 枚举
 * @date 2022/1/3 11:49
 */

@Getter
@AllArgsConstructor
@ToString
public enum ConstEnum {
    // 公共模块
    SUCCESS(200, "success"),
    ERROR(500, "内部服务异常"),

    // 登录模块
    LOGIN_ERROR(4001, "用户名或者密码错误"),
    MOBILE_ERROR(4002, "电话格式错误"),
    // 异常
    BIND_EXCEPTION(5001, "参数校验异常"),
    INNER_EXCEPTION(5000,"内部异常"),
    ;
    private final Integer code;
    private final String msg;
}
